enyo.kind({
    name: "MyApps.Boutique",
    kind: enyo.VFlexBox,
    events: {
        onBack: "",
    },
    components: [{
        name: "pane",
        kind: "Pane",
        flex: 1,
        transitionKind: "enyo.transitions.LeftRightFlyin",
        components: [{
            kind: "VFlexBox",
            className: "bg-gp",
            components: [{
            
                kind: "PageHeader",
                className: "enyo-header-dark",
                components: [{
                    kind: "IconButton",
                    onclick: "doBack",
                    icon: "images/menu-icon-back.png",
                    className: "enyo-button-dark"
                }, {
                    kind: "VFlexBox",
                    flex: 1,
                    align: "center",
                    components: [{
                        content: "Boutique"
                    }, ]
                }, ]
            }, {
                kind: "Button",
                className: "enyo-button-affirmative",
                caption: "La promo de la semaine",
                onclick: "showWeekPromotion",
            }, {
                kind: "Button",
                className: "enyo-button-affirmative",
                caption: "Les bonnes affaires",
                onclick: "showProductsList",
            }, {
                content: "Vous souhaitez acheter ces produits? Notre service Vente A Distance est à votre disposition.",
                className: "boutiquetext",
            }, {
                content: "Du lundi au vendredi de 9h à 18h au 01 39 75 28 48",
                className: "boutiquetext",
            }, {
                content: "info@golfplus.fr",
                className: "boutiquetextemail",
            }]
        
        }, {
            name: "weekPromotion",
            kind: "MyApps.WeekPromotion",
            onBack: "goBack"
        }, {
            name: "productsList",
            kind: "MyApps.ProductsList",
            onBack: "goBack"
        }]
    }],
    
    
    showProductsList: function(){
        this.$.pane.selectViewByName("productsList");
    },
    showWeekPromotion: function(){
        this.$.pane.selectViewByName("weekPromotion");
    },
    goBack: function(inSender, inEvent){
        this.$.pane.back(inEvent);
    },

});


